/**
 * 
 */
package design_pattern.command.audioplayer;

/**
 * @author linzq
 * 
 */
public class Julia {

  static KeyPad keyPad;

  static AudioPlayer player = new AudioPlayer();

  public static void main(String[] args) {
    Command cmdPlay = new PlayCommand(player);
    Command cmdStop = new StopCommand(player);
    Command cmdRewind = new RewindCommand(player);
    keyPad = new KeyPad(cmdPlay, cmdRewind, cmdStop);
    keyPad.play();
    keyPad.rewind();
    keyPad.stop();

  }

}
